{% for host in groups['zk'] %}{% if host == ansible_hostname %}{{ loop.index }}{% endif %}{% endfor %}
